package com.czf.CurriculumVitae.bean;

import java.util.Objects;

//技能
public class Skill {
    private int id;
    private String userId;
    private String keyWords;

    public Skill() {
    }

    public Skill(String userId, String keyWords) {
        this.userId = userId;
        this.keyWords = keyWords;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Skill skill = (Skill) o;
        return id == skill.id && userId.equals(skill.userId) && keyWords.equals(skill.keyWords);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, userId, keyWords);
    }

    @Override
    public String toString() {
        return "Skill{" +
                "id=" + id +
                ", userId=" + userId +
                ", keyWords='" + keyWords + '\'' +
                '}';
    }

    public Skill(int id, String userId, String keyWords) {
        this.id = id;
        this.userId = userId;
        this.keyWords = keyWords;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getKeyWords() {
        return keyWords;
    }

    public void setKeyWords(String keyWords) {
        this.keyWords = keyWords;
    }
}
